package com.study.ApplicationEvent2.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.study.ApplicationEvent2.UserBean;
import com.study.ApplicationEvent2.service.UserService;

@RestController
public class UserController {

	@Autowired
	private UserService userService;
	
	@RequestMapping("/register")
	public String register(UserBean user){
		
		userService.register(user);;
		return "注册成功。。。。";
	}
}
